// modules/lang.ts
import { Module } from "vuex"
import { RootState } from "../index"
export interface LangState {
    activeLang: string
}

export const store: Module<LangState, RootState> = {
    namespaced: true,
    state: (): LangState => ({
        activeLang: "",
    }),
    mutations: {
        changeLang(state: LangState, lang: string) {
            state.activeLang = lang
        },
    },
}

